package com.aaa.mrcai.controller;

import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.BigPieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 22:00 2021/12/22
 */
@RestController
@RequestMapping("bigPie")
public class PieController {
    @Autowired
    private BigPieService bigPieService;

    @RequestMapping("listOnePie")
    public AjaxResult listOnePie(){
        return bigPieService.listOnePie();
    }
}
